﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    //在DeliveryRobot中添加一个代表连续工作时长的字段hours。
    //传菜机器人类
    class LiveryRobot :Robot
    {
        public double Time;
        public LiveryRobot()
        {

        }

        public LiveryRobot(string Name,double Time):base(Name)
        {
            this.Time = Time;
        }

        public override void Working()
        {
       
            Console.WriteLine("我是机器人{0}，我己经工作{1}了，人家想休息了", this.Name,this.Time);          
        }
    }
}
